<!DOCTYPE html>
<html>
<head>
    <title></title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <i-col span="4">
                <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
            </i-col>
            <i-button @click="query">查询</i-button>
			#if($shiro.hasPermission("payway:save"))
            <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
			#end
			#if($shiro.hasPermission("payway:update"))
            <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
			#end
			#if($shiro.hasPermission("payway:delete"))
            <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
			#end
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="payWay" :rules="ruleValidate" :label-width="80">
            <Form-item label="version" prop="version">
                <i-input v-model="payWay.version" placeholder="版本"/>
            </Form-item>
            <Form-item label="创建时间" prop="createTime">
                <i-input v-model="payWay.createTime" placeholder="创建时间"/>
            </Form-item>
            <Form-item label="修改时间" prop="editTime">
                <i-input v-model="payWay.editTime" placeholder="修改时间"/>
            </Form-item>
            <Form-item label="支付方式编号" prop="payWayCode">
                <i-input v-model="payWay.payWayCode" placeholder="支付方式编号"/>
            </Form-item>
            <Form-item label="支付方式名称" prop="payWayName">
                <i-input v-model="payWay.payWayName" placeholder="支付方式名称"/>
            </Form-item>
            <Form-item label="支付类型编号" prop="payTypeCode">
                <i-input v-model="payWay.payTypeCode" placeholder="支付类型编号"/>
            </Form-item>
            <Form-item label="支付类型名称" prop="payTypeName">
                <i-input v-model="payWay.payTypeName" placeholder="支付类型名称"/>
            </Form-item>
            <Form-item label="支付产品编号" prop="payProductCode">
                <i-input v-model="payWay.payProductCode" placeholder="支付产品编号"/>
            </Form-item>
            <Form-item label="状态" prop="status">
                <i-input v-model="payWay.status" placeholder="状态"/>
            </Form-item>
            <Form-item label="排序" prop="sorts">
                <i-input v-model="payWay.sorts" placeholder="排序"/>
            </Form-item>
            <Form-item label="商户支付费率" prop="payRate">
                <i-input v-model="payWay.payRate" placeholder="商户支付费率"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/pay/payway.js?_${date.systemTime}"></script>
</body>
</html>